/*
 * socket.h
 *
 *  Created on: 26/11/2011
 *      Author: alejandro
 */

#ifndef SOCKET_H_
#define SOCKET_H_

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include "funcionesYEstructurasRaid.h"
#include "Protocolo_NIPC.h"

int32_t handshakePRAID_PPD(int socket, paquete *NIPC);
int32_t handshakePRAID_PPDInicial(int socket, paquete *NIPC);
int32_t handshakePRAID_FS(int socket, paquete *NIPC, uint32_t discosConectados);
int32_t RAID_RECIBEPEDIDO (int socket, paquete *NIPC);
int32_t RAID_MANDAPEDIDO (int socket, paquete *NIPC);

#endif /* SOCKET_H_ */
